import Layout from '@/layouts/index.vue'
import echarts from './routerCate/echarts'
import user from './routerCate/user'
import lang from './routerCate/lang'
import vuex from './routerCate/vuex'
const routes = [
    {
        path: '/',
        redirect: '/home',
        component: Layout,
        meta: { title: '导航', icon: 'i-ep-edit' },
        children: [
            {
                path: 'home',
                component: () => import('views/Home/index.vue'),
                name: 'Home',
                meta: { title: '首页', icon: 'i-ep-edit' },
                children: [
                    {
                        path: ':id',
                        component: () => import('views/detail.vue'),
                        name: 'Detail',
                        hidden: true,
                        meta: { title: '详情', icon: 'i-ep-edit', activeMenu: '/home' }
                    }
                ]
            }
        ]
    },
    ...echarts,
    ...user,
    ...lang,
    ...vuex
]
export default routes
